<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<style>
		table{  
		     border-collapse: collapse;  
		     border: none;  
		}  
		td,th{padding:6px 0;}
		tr>th{
			border-bottom:2px solid #aaa;
		}
		tr>td{
			border-bottom:1px solid #aaa;
		}
	</style>
</head>
<body style="width:550px;margin:50px auto;">
	<div id="caculatedialog">
		<span style="font-size:1.5em;font-weight:bold;">AOP模拟测试——管理端</span>
		<br/><br/>
		<hr/>
		<br/>
		
		<div style="text-align:right;">
			<form action="">
				<span style="font-size:14px;">查询统计：</span>
				<select name="days">
					<c:if test="${days == 30 }">
						<option value="30">最近30天</option>
						<option value="7">最近7天</option>
					</c:if>
					<c:if test="${days == 7 }">
						<option value="7">最近7天</option>
						<option value="30">最近30天</option>
					</c:if>
				</select>
				
				<a href="/testAop/admin/caculate"><button><span>查询</span></button></a>
			</form>
		</div>
		
		<table style="text-align:center;width:550px;">
			<tr>
				<th style="width:60px;">序号</th>
				<th style="width:200px;">操作按钮</th>
				<th style="width:300px;">操作次数</th>
				<th style="width:200px;">平均响应时间(ms)</th>
			</tr>
			<tr>
				<td>1</td>
				<td>新增</td>
				<td>${addtimes }</td>
				<td>${addResponsetime }</td>
			</tr>
			<tr>
				<td>2</td>
				<td>修改</td>
				<td>${updatetimes }</td>
				<td>${updateResponsetime }</td>
			</tr>
		</table>

		<br/><br/>
		<hr/>
		<br/><br/>
		<div style="text-align:right;">
			<a href="/testAop/admin/index"><button><span style="font-size:2em">返回</span></button></a>
		</div>
	</div>
</body>
</html>